/**
 * Copyright (C) 2018-2020
 * All rights reserved, Designed By www.yixiang.co
 * 注意：
 * 本软件为www.yixiang.co开发研制
 */
package co.yixiang.modules.shop.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.*;
import java.sql.Timestamp;
import java.io.Serializable;

/**
 * @author chajiu
 * @date 2021-04-25
 */
@Data
@TableName("yx_store_online")
public class YxStoreOnline implements Serializable {

    @TableId
    private Integer id;


    /** 店铺名称 */
    @ApiModelProperty(value = "店铺名称")
    private String name;


    /** 店铺logo */
    @ApiModelProperty(value = "店铺logo")
    private String image;


    /** 店铺手机 */
    @ApiModelProperty(value = "店铺手机")
    private String phone;


    /** 门店状态：正常、封禁、暂停 */
    @ApiModelProperty(value = "门店状态：正常、封禁、暂停")
    private Integer status;


    /** 状态变化时间 */
    @ApiModelProperty(value = "状态变化时间")
    private Timestamp statusChangeTime;


    /** 封禁时间（天） */
    @ApiModelProperty(value = "封禁时间（天）")
    private Integer banDay;


    /** 门店入驻时间 */
    @ApiModelProperty(value = "门店入驻时间")
    // @CreationTimestamp
    private Timestamp onlineTime;


    /** 拥有者ID */
    @ApiModelProperty(value = "拥有者ID")
    private Long ownerId;


    /** 拥有者姓名 */
    @ApiModelProperty(value = "拥有者姓名")
    private String ownerName;


    /** 店铺ID */
    @ApiModelProperty(value = "店铺ID")
    private Long shopId;


    /** 店铺介绍 */
    @ApiModelProperty(value = "店铺介绍")
    private String description;


    /** 发货地址 */
    @ApiModelProperty(value = "发货地址")
    private String sendAddress;


    /** 退货地址 */
    @ApiModelProperty(value = "退货地址")
    private String backAddress;


    /** 退货联系人 */
    @ApiModelProperty(value = "退货联系人")
    private String backPeople;


    /** 退货人手机 */
    @ApiModelProperty(value = "退货人手机")
    private String backPhone;


    /** 认证信息 */
    @ApiModelProperty(value = "认证信息")
    private String confirmMsg;


    public void copy(YxStoreOnline source) {
        BeanUtil.copyProperties(source, this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
